//
//  TopModel.m
//  Parson
//
//  Created by lanou3g on 16/5/4.
//  Copyright © 2016年 Mango. All rights reserved.
//

#import "TopModel.h"

@implementation TopModel
- (CGFloat)cellHeight {
    NSDictionary *dict = @{NSFontAttributeName : [UIFont systemFontOfSize:18]};
    CGFloat titleLabelWidth = ScreenSizeW - 16;
    CGRect rect = [self.title boundingRectWithSize:CGSizeMake(titleLabelWidth, MAXFLOAT) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:dict context:nil];
    return  8 + 210 + 8 + rect.size.height + 8 + 16 + 8 + 10;
}
@end
